package com.tl.datashare.exception;

/**
 * @Author fyy
 * @Date 2022/07/25
 */
public enum  ExptEnum {

    SUCCESS(200,"操作成功"),

    FAIL(500,"操作失败"),

    EXCEPTION(400,"请求错误");

    private Integer code;
    private String message;

    private ExptEnum(Integer code,String message){
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
